import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2024-03-09
 * Time: 23:07
 */

class PetDog{
    public String color;
    public String name;
    public int age;

    public void eat(){
        System.out.println(name + "正在吃饭！");
    }
    public void barks(){
        System.out.println(name + "正在吠叫！");
    }
    public void wag(){
        System.out.println(name + "正在摇尾巴！");
    }
}

public class Test {

    public static void main(String[] args) {
        PetDog dog = new PetDog();
        dog.age = 5;
        dog.name = "博美";
        dog.color = "白色";
        System.out.println(dog.age);
        System.out.println(dog.name);
        System.out.println(dog.color);

        dog.eat();
        dog.barks();

        System.out.println("======================");

        PetDog dog2 = new PetDog();
        dog2.age = 3;
        dog2.name = "大金毛";
        dog2.color = "黄色";
        System.out.println(dog2.age);
        System.out.println(dog2.name);
        System.out.println(dog2.color);

        dog2.eat();
        dog2.barks();

    }
}





    class Student1{
        public String name;
        public String gender;
        public short age;
        public double score;

        public void doClass(){
            System.out.println("按时上课，不要迟到，如果请假，及时去补。");
        }
        public void doHomework(){
            System.out.println("作业系统，完成作业，一旦拖沓，神仙难救。");
        }
        public void exam(){
            System.out.println("考试目的，了解学情，人人必考，暴露问题");
        }
    }




class WashMachine {
    public String brand;
    public String type;
    public double weight;
    public double length;
    public double width;

    public double height;
    public String color;


    public void washClothes(){
        System.out.println("洗衣服功能");
    }
    public void dryClothes(){
        System.out.println("脱水功能");
    }
    public void  setTime(){
        System.out.println("定时功能");
    }
}








    /*public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请决定你要输入的数组的元素个数：");
        int num = scanner.nextInt();
        int[] array = new int[num];

        System.out.printf("请输入%d个元素个数：",num);
        for (int i = 0; i < array.length; i++) {
            array[i] = scanner.nextInt();
        }

        System.out.print("你输入的数组是：");
        for (int i = 0; i < array.length; i++) {
            System.out.print(array[i] + " ");
        }
        System.out.println();
        scanner.close();
    }*/



